$(document).ready(function(){
   _init_url = "/control/gainDepmtList.htm";
   send_request(function(data){
		 var userObj_ = eval('(' + data + ')');
		 var setting = {
					data: {
						simpleData: {
							enable: true,
							idKey: "id",
							pIdKey: "pId",
							rootPId: 0
								}
					},
					callback: {
						onClick: zTreeOnClick
					}
				};
		 $.fn.zTree.init($("#treeDemo"), setting, userObj_[0].class_);
		 },_init_url, true); 
         function zTreeOnClick(event, treeId, treeNode) {
	          send_request(function(data){
	        	 $("#J_class_column_").html(data);
	          }, "/control/classcolumn_setting.htm?classId="+treeNode.id, true);
	     };
});